//package cn.iocoder.yudao.movie.serive.movieInf;
//
//import cn.hutool.http.HttpRequest;
//import cn.hutool.http.HttpResponse;
//import cn.hutool.http.ssl.SSLSocketFactoryBuilder;
//import cn.iocoder.yudao.movie.enums.MovieInfEnum;
//import com.alibaba.fastjson.JSONObject;
//
//import javax.net.ssl.SSLSocketFactory;
//import javax.net.ssl.X509TrustManager;
//import java.security.KeyManagementException;
//import java.security.NoSuchAlgorithmException;
//import java.security.cert.CertificateException;
//import java.security.cert.X509Certificate;
//
///**
// * <p>  </p>
// */
//public class ShouTuMovieInfServiceImpl implements MovieInfService{
//    /**
//     * 获取电影接口信息类型
//     *
//     * @return
//     */
//    @Override
//    public MovieInfEnum getMovieInfType() {
//        return MovieInfEnum.SHOU_TU;
//    }
//
//    public static void main(String[] args) throws NoSuchAlgorithmException, KeyManagementException {
//        String p = "ci=40&cityId=40&cityCode=500100&platformUUID=17819556130&referId=&be_invite_identity=1&mode=qmm&domainName=https%3A%2F%2Fgw.taototo.cn%2F&promoteCode=&longitude=106.49245942233918&latitude=29.50799738024277&appKey=17819556130&page=1&limit=10&showType=1";
//        X509TrustManager X0509TM = new X509TrustManager() {
//            @Override  // 检查客户端证书
//            public void checkClientTrusted(X509Certificate[] chain, String authType) throws CertificateException {}
//
//            @Override // 检查服务端端证书
//            public void checkServerTrusted(X509Certificate[] chain,String authType) throws CertificateException {}
//
//            @Override  //返回受信任的X509证书数组
//            public X509Certificate[] getAcceptedIssuers() {
//                return null;
//            }
//        };
//
//        //X0509TM 为上述参数
//        SSLSocketFactory build = SSLSocketFactoryBuilder.create()
//                .setTrustManagers(X0509TM) //设置信任证书
//                .setProtocol(SSLSocketFactoryBuilder.SSLv3)//设置协议，其实经测试写不写都可以
//                .build();
//
//        HttpResponse execute = HttpRequest.post("https://c.taobao.cn/yp-api/api-center/client/movie/search")
//                .header("Referer", "https://servicewechat.com/wx71437d9fb30b990e/57/page-frame.html")
//                .header("TOKEN", " ")
//                .setSSLSocketFactory(build)
//                .body(p)
//                .execute();
//
//        String body = execute.body();
//        System.out.println(body);
//    }
//}
